package com.mrd.gtimpframe.service;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletResponse;

import com.mrd.base.Jqgrid;
import com.mrd.gtimpframe.entity.Declaration;

/**
 * Created by dusy on 2017/8/9.
 */
public interface DeclarationService {
  /**
   * 查询已驳回单证
   */
  void findRejectList(Jqgrid jqgrid, HttpServletResponse response);

  int deleteByPrimaryKey(String id);

  int insert(Declaration record);

  int insertSelective(Declaration record);

  Declaration selectByPrimaryKey(String id);

  List<Declaration> selectByPrimaryKeyList(List<String> idList);

  int updateByPrimaryKeySelective(Declaration record);

  int updateByPrimaryKey(Declaration record);

  /**
   * 自定义查询条件及字段查询(只包含少部分查验信息)
   *
   * @param propertyMap 需要获取的报关单属性,whereCase:查询条件
   */
  List<Declaration> selectByWhereCaseIncludeCheckTracking(Map<String, String> propertyMap);

  /**
   * 已受理报关单查询
   */
  void findValidList(Jqgrid jqgrid, HttpServletResponse response);

  /**
   * 待受理报关单查询
   * 
   * @author han
   */
  public void findToValidList(Jqgrid jqgrid, HttpServletResponse response);

  /**
   * 根据主键查找报关单（包含单一窗口需要的所有内容）
   */
  Declaration selectByPrimaryKey4SingleWindow(String id);
}
